package cn.kgc.vue.controller;

import cn.kgc.vue.common.ResponseResult;
import cn.kgc.vue.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/***
 *@title EchartController
 *@author 韩旭
 *@version 1.0.0
 *@create 2023/8/21 16:31
 **/
@RestController
@RequestMapping("echart")
public class EchartController {

    @Autowired
    private StudentService studentService;
    //获取专业人数
    @GetMapping("ObjectCount")
    public ResponseResult objectCount(){
        return studentService.objectCount();
    }

    //获取部门人数
    @GetMapping("deptCount")
    public ResponseResult deptCount(){
        return studentService.deptCount();
    }
}
